home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Programming / CVS / source / zlib / smakefile
Encoding:
Makefile  |  2001-02-07  |  4.0 KB  |  156 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for zlib
  3. # Copyright (C) 1995-1996 Jean-loup Gailly.
  4. # For conditions of distribution and use, see copyright notice in zlib.h 
  5.  
  6. srcdir     = .
  7. top_srcdir = ..
  8.  
  9. # To compile and test, type:
  10. #   ./configure; make test
  11. # The call of configure is optional if you don't have special requirements
  12.  
  13. # To install /usr/local/lib/libz.* and /usr/local/include/zlib.h, type:
  14. #    make install
  15. # To install in $HOME instead of /usr/local, use:
  16. #    make install prefix=$HOME
  17.  
  18. CC=sc
  19.  
  20. CFLAGS=cpu=any utillib commentnest structureequivalence stringmerge nostackcheck idir="/amiga" \
  21.        optimize opttime optschedule debug=line
  22. #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
  23. #CFLAGS=-g -DDEBUG
  24. #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
  25. #           -Wstrict-prototypes -Wmissing-prototypes
  26.  
  27. LDFLAGS=
  28. LDSHARED=$(CC)
  29.  
  30. VER=1.0.4
  31. LIBS=z.lib
  32.  
  33. # For CVS, separate AR and ARFLAGS.
  34. AR=
  35. RANLIB=
  36. TAR=
  37.  
  38. prefix=
  39. exec_prefix = $(prefix)
  40.  
  41. OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
  42.        zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
  43.  
  44. TEST_OBJS = example.o minigzip.o
  45.  
  46. # build_zlib.com added for CVS
  47. DISTFILES = README INDEX ChangeLog configure Makefile.*[a-z0-9] Make_vms.com \
  48.         descrip.mms zlib.def zlib.rc algorithm.doc *.[ch] \
  49.         build_zlib.com zlib.dsp .cvsignore
  50.  
  51. # For CVS, just build libz.a
  52. all: z.lib
  53.  
  54. test: all
  55.     ./example
  56.     echo hello world | ./minigzip | ./minigzip -d 
  57.  
  58. z.lib : $(OBJS)
  59.     -delete $@ quiet
  60.     oml $@ r $(OBJS)
  61.  
  62. # For CVS, use an explict rc after $(AR).
  63. libz.a: $(OBJS)
  64.     $(AR) rc $@ $(OBJS)
  65.     -@ ($(RANLIB) $@ || true) 2>/dev/null
  66.  
  67. libz.so.$(VER): $(OBJS)
  68.     $(LDSHARED) -o $@ $(OBJS)
  69.     rm -f libz.so; ln -s $@ libz.so
  70.  
  71. example: example.o $(LIBS)
  72.     $(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS) $(LIBS)
  73.  
  74. minigzip: minigzip.o $(LIBS)
  75.     $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) $(LIBS)
  76.  
  77. # For CVS, remove the install and uninstall targets.
  78. install:
  79. uninstall:
  80. .PHONY: install uninstall
  81.  
  82. installdirs:
  83. .PHONY: installdirs
  84.  
  85. # mostlyclean added for CVS.
  86. clean mostlyclean:
  87.     rm -f *.o *~ example minigzip libz.a libz.so* foo.gz
  88.  
  89. # distclean and realclean added for CVS.
  90. distclean realclean: clean
  91.     rm -f Makefile
  92. .PHONY: distclean realclean
  93.  
  94. # dist-dir added for CVS.
  95. dist-dir:
  96.     mkdir ${DISTDIR}
  97.     for i in `cd $(srcdir); echo ${DISTFILES}`; do \
  98.       ln $(srcdir)/$${i} ${DISTDIR}; \
  99.     done
  100. .PHONY: dist-dir
  101.  
  102. # ls added for CVS.
  103. ls:
  104.     @echo $(DISTFILES)
  105. .PHONY: ls
  106.  
  107. zip:
  108.     mv Makefile Makefile~; cp -p Makefile.in Makefile
  109.     v=`sed -n -e 's/\.//g' -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\
  110.     zip -ul9 zlib$$v $(DISTFILES)
  111.     mv Makefile~ Makefile
  112.  
  113. dist:
  114.     mv Makefile Makefile~; cp -p Makefile.in Makefile
  115.     d=zlib-`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\
  116.     rm -f $$d.tar.gz; \
  117.     if test ! -d ../$$d; then rm -f ../$$d; ln -s `pwd` ../$$d; fi; \
  118.     files=""; \
  119.     for f in $(DISTFILES); do files="$$files $$d/$$f"; done; \
  120.     cd ..; \
  121.     GZIP=-9 $(TAR) chofz $$d/$$d.tar.gz $$files; \
  122.     if test ! -d $$d; then rm -f $$d; fi
  123.     mv Makefile~ Makefile
  124.  
  125. tags:    
  126.     etags *.[ch]
  127.  
  128. # Makefile target added for CVS.
  129. subdir = zlib
  130. Makefile: ../config.status Makefile.in
  131.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  132.  
  133. depend:
  134.     makedepend -- $(CFLAGS) -- *.[ch]
  135.  
  136. # DO NOT DELETE THIS LINE -- make depend depends on it.
  137.  
  138. adler32.o: zlib.h zconf.h
  139. compress.o: zlib.h zconf.h
  140. crc32.o: zlib.h zconf.h
  141. deflate.o: deflate.h zutil.h zlib.h zconf.h
  142. example.o: zlib.h zconf.h
  143. gzio.o: zutil.h zlib.h zconf.h
  144. infblock.o: infblock.h inftrees.h infcodes.h infutil.h zutil.h zlib.h zconf.h
  145. infcodes.o: zutil.h zlib.h zconf.h
  146. infcodes.o: inftrees.h infblock.h infcodes.h infutil.h inffast.h
  147. inffast.o: zutil.h zlib.h zconf.h inftrees.h
  148. inffast.o: infblock.h infcodes.h infutil.h inffast.h
  149. inflate.o: zutil.h zlib.h zconf.h infblock.h
  150. inftrees.o: zutil.h zlib.h zconf.h inftrees.h
  151. infutil.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h
  152. minigzip.o:  zlib.h zconf.h 
  153. trees.o: deflate.h zutil.h zlib.h zconf.h 
  154. uncompr.o: zlib.h zconf.h
  155. zutil.o: zutil.h zlib.h zconf.h  
  156.